﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FluentNHibernate.Mapping;
using Shake.Domain.Models;

namespace Shake.Domain.Maps
{
    public class QualificationMap : ClassMap<Qualification>
    {
        public QualificationMap()
        {
            this.Table("Qualification");
            this.Id(t => t.Id).Column("Id").Length(32).Not.Nullable();
            this.Map(t => t.QualName).Column("QualName");
            this.Map(t => t.QualType).Column("QualType");
            this.Map(t => t.QualLevel).Column("QualLevel");
            this.Map(t => t.ValidStartDate).Column("ValidStartDate");
            this.Map(t => t.ValidEndDate).Column("ValidEndDate");
            this.Map(t => t.Remark).Column("Remark");
            this.Map(t => t.UserId).Column("UserId");
        }
    }
}
